home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4386 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: twain.oit.umass.edu!ksnella
  2. From: ksnella@twain.oit.umass.edu (Kenneth A Snella)
  3. Newsgroups: comp.lang.c
  4. Subject: Library, header file problem
  5. Date: 2 Feb 1996 03:08:12 GMT
  6. Organization: University of Massachusetts, Amherst
  7. Message-ID: <4erv6s$8u7@nic.umass.edu>
  8. NNTP-Posting-Host: twain.oit.umass.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. I'm having a problem, that I thought someone may be able to help me 
  12. with.  I'm using Borland C++ 3.1, but programming primarily in C.  I'm 
  13. trying to create a Library of functions that I use, but those functions 
  14. manipulate structures that I define.  If I include the structure 
  15. definitions in the library, it compiles fine, and I can add it to my 
  16. library.  However, when I try to compile the main program... the library 
  17. has the items defined (the names), but it does not seem to recognize the 
  18. individual items within those structures, so... if I define the 
  19. structures again, I get errors saying there are multiple declairations, 
  20. but if I leave it out, I get an error saying that all of the elements of 
  21. the structures are unknown.  What's the deal?  How can I get ALL of it to 
  22. come through from the library, or even redeclare the structures?
  23.  
  24.